<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta content="IE=8" http-equiv="X-UA-Compatible" />
    <title>角色列表</title>
    {$QPath}
    <link rel="stylesheet" type="text/css" href="__TMPL__../Admin/Public/base.css" />
    <script type="text/javascript" src="__TMPL__../Admin/Public/mootools.js"></script>
    <script type="text/javascript" src="__TMPL__../Admin/Public/base.js"></script>
</head>
<body>
    <div id="container">
        <table class="tabmenu" cellspacing="0">
            <tbody>
                <tr>
                    <td class="wedge">&nbsp;</td>
                    <td class="wmenu"><a href="__APP__/pUser/index"><span>用户列表</span></a></td>
                    <td class="wmenu"><a href="__APP__/pUser/add"><span>添加用户</span></a></td>
                    <td class="wmenu here">角色列表</td>
                    <td class="wmenu"><a href="__URL__/add"><span>添加角色</span></a></td>
                    <td>&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <div class="main">
            <ul class="fnc">
                <li class="page">{$page}</li>
                <li><button type="button" class="btn" onclick="doAction('removal')">删除</button></li>
                <li><button type="button" class="btn" onclick="doAction('edit')">更改</button></li>
            </ul>
            <form method="post" action="__URL__">
                <input type="hidden" name="a"/>
                <table class="data">
                    <thead>
                        <tr>
                        <th class="cbCell"><input type="checkbox" id="effectAll" /></th>
                        <th>角色名称</th>
                        <th>状态</th>
                        <th>操作</th>
                        </tr>
                    </thead>
                    <tbody class="grid">
                        <present name="list">
                            <iterate name="list" id="vo">
                                <tr>
                                    <td><input type="checkbox" name="sid[]" value="{$vo['id']}"/></td>
                                    <td>{$vo['name']}</td>
                                    <td><if condition="$vo['status'] eq '1'">{%enabled}<else />{%disabled}</if></td>
                                    <td>

                                    </td>
                                </tr>
                            </iterate>
                        <else/>
                            <tr class="notfound">
                                <td colspan="20">{%no_records_find}</td>
                            </tr>
                        </present>
                    </tbody>
                </table>
            </form>
            <ul class="fnc">
                <li class="page">{$page}</li>
                <li><button type="button" class="btn" onclick="doAction('removal')">删除</button></li>
                <li><button type="button" class="btn" onclick="doAction('edit')">变更</button></li>
            </ul>
        </div>
    </div>
    <script type="text/javascript">

    </script>
</body>
</html>
